# >>> l1 = [10,8,20,10,35,2]
# >>> l1
# [10, 8, 20, 10, 35, 2]
# >>> len(l1)
# 6
# >>> l1[1:1]
# []
# >>> l1[1:1] = [100, 200]
# >>> l1
# [10, 100, 200, 8, 20, 10, 35, 2]
# >>> l1.append(20)
# >>> l1
# [10, 100, 200, 8, 20, 10, 35, 2, 20]
# >>> l1.append([1,2,3])
# >>> l1
# [10, 100, 200, 8, 20, 10, 35, 2, 20, [1, 2, 3]]
# >>> l1.extend([1,2,3])
# >>> l1
# [10, 100, 200, 8, 20, 10, 35, 2, 20, [1, 2, 3], 1, 2, 3]
# >>> l1.insert(2,20)
# >>> l1
# [10, 100, 20, 200, 8, 20, 10, 35, 2, 20, [1, 2, 3], 1, 2, 3]
# >>> l1.index(20)
# 2
# >>> l1.index(20,1)
# 2
# >>> l1.index(20,3)
# 5
# >>> l1.remove(20)
# >>> l1
# [10, 100, 200, 8, 20, 10, 35, 2, 20, [1, 2, 3], 1, 2, 3]
# >>> l1.pop()
# 3
# >>> a = l1.remove(20)
# >>> b = l1.pop()
# >>> a
# >>> b
# 2
# >>> l1
# [10, 100, 200, 8, 10, 35, 2, 20, [1, 2, 3], 1]
# >>> l1.pop(-2)
# [1, 2, 3]
# >>> l1
# [10, 100, 200, 8, 10, 35, 2, 20, 1]
# >>> l1.sort()
# >>> l1
# [1, 2, 8, 10, 10, 20, 35, 100, 200]
# >>> l1.sort()
# >>> l1
# [1, 2, 8, 10, 10, 20, 35, 100, 200]
# >>> l1.reverse()
# >>> l1
# [200, 100, 35, 20, 10, 10, 8, 2, 1]
# >>> l2 = l1
# >>> l2
# [200, 100, 35, 20, 10, 10, 8, 2, 1]
# >>> l1
# [200, 100, 35, 20, 10, 10, 8, 2, 1]
# >>> l2.pop()
# 1
# >>> l2
# [200, 100, 35, 20, 10, 10, 8, 2]
# >>> l1
# [200, 100, 35, 20, 10, 10, 8, 2]
# >>> l3 = l1.c
# l1.clear(  l1.copy(   l1.count(
# >>> l3 = l1.copy()
# >>> l1
# [200, 100, 35, 20, 10, 10, 8, 2]
# >>> l3
# [200, 100, 35, 20, 10, 10, 8, 2]
# >>> l3.pop()
# 2
# >>> l3
# [200, 100, 35, 20, 10, 10, 8]
# >>> l1
# [200, 100, 35, 20, 10, 10, 8, 2]
# >>> l3.clear()
# >>> t1 = (22,10,3,20)
# >>> t1
# (22, 10, 3, 20)
# >>> len(t1)
# 4
# >>> type(t1)
# <class 'tuple'>
# >>> str(t1)
# '(22, 10, 3, 20)'
# >>> t1
# (22, 10, 3, 20)
# >>> t8 = (20,)
# >>> t8
# (20,)
# >>> type(t8)
# <class 'tuple'>
# d1 = {'name': 'tom', 'name': 'jerry', 'age': '20'}
# d2 = dict([('name', 'tom'), ('age', 20), ('email', 'tom@tedu.com')])
# d3 = {}.fromkeys(['tom', 'jerry', 'bob', 'alice'],20)
# print(len(d2))
# for k in d2:
#     print(k,d2[k])
# d2['age']= 25
# d2
# result = 0
# for i in range(1, 11):
#     result += i
#     i += 1
#cut_file.py
# print(result)
# from datetime import datetime
# logfile = 'mylog.log'
# t9 = datetime.strptime('2019-05-15 09:00:00','%Y-%m-%d %H:%M:%S')
# t12 = datetime.strptime('2019-05-15 12:00:00','%Y-%m-%d %H:%M:%S')
# with open(logfile) as fobj:
#     for line in fobj:
#         t = datetime.strptime(line[:19],'%Y-%m-%d %H:%M:%S')
#         if t > t12:
#             break
#         if t > t9:
#             print(line,end='')
# import os
# for lujing,mulu,wenjian in os.walk('/tmp/demo'):
#     print('%s:' % lujing)
#     for m in mulu:
#             print('\033[31;1m%s\33[0m' % m,end='\t')
#     for w in wenjian:
#             print(w,end='\t')
#     print('\n')
# import os
# for lujing,mulu,wenjian in os.walk('/tmp/demo'):
#     print('%s' % lujing)
#     for m in mulu:
#         print(m,end='\t')
#     for f in wenjian:
#         print(f,end='\t')
#     print('\n')
# result =10000
# for i in range(1,100000):
